#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_exam2.py
# author:肖宇轩
# datetime:2024-11-12 19:16
# software: VsCode

"""
2 分别定义6种具有不同数据类型的变量并赋值，然后打印出这些变量的类型（使用type函数）；
"""


integer_var = 42               
float_var = 3.14               
string_var = "Hello, World!"   
boolean_var = True             
list_var = [1, 2, 3, 4]        
dict_var = {"name": "Alice", "age": 25}  


print("integer_var:", type(integer_var))
print("float_var:", type(float_var))
print("string_var:", type(string_var))
print("boolean_var:", type(boolean_var))
print("list_var:", type(list_var))
print("dict_var:", type(dict_var))
